Skip to main content
Version: 6.2.0

response.js(optional)

response.js is configuration of JavaScript logic to respond when event requested.

With input variable, user can create their own logic for response.

If there is no response.js, 200 OK will be responded.

Expected input/output

  • Execution input
    • input/notification contains received event notification.
  • Execution output
    • output need to contain response body for received event notification.

Example response.js

try {
const validationToken = input.notification.params.query.validationToken
if (validationToken) {
return validationToken
} else {
return {}
}
} catch (error) {
console.error('Error parsing request:', error);
throw error;
}